package cc.catface.dao.biz.app.dto;

import cc.catface.dao.biz.app.ApArticle;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel
public class ListCollectOUTDTO {
    @ApiModelProperty(value = "用户ID")
    private long userId;
    @ApiModelProperty(value = "文章ID")
    private long articleId;
    @ApiModelProperty(value = "收藏的内容类型(0文章1动态)")
    private int type;
    @ApiModelProperty(value = "收藏时间[yyyy-MM-dd HH:mm:ss]")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date collectionTime;
    @ApiModelProperty(value = "文章详情")
    private ApArticle article;
}
